package o2o.thridpost.dada.model.to;

import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.SerializedName;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 增加小费
 *
 * @author sunyufan deporation@qq.com
 * @date 2021/4/29 15:06
 * @description: AddDadaTipTo 增加小费
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddDadaTipTO {
    /**
     * 第三方订单编号
     */
    @JSONField(name = "orderId")
    @SerializedName("orderId")
    private String orderId;

    /**
     * 小费金额(精确到小数点后一位，单位：元)
     */
    @JSONField(name = "tips")
    @SerializedName("tips")
    private float tips;

    /**
     * 订单城市区号
     */
    @JSONField(name = "city_code")
    @SerializedName("city_code")
    private String cityCode;

    /**
     * 备注
     */
    @JSONField(name = "info")
    @SerializedName("info")
    private String info;

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("orderId", orderId)
                .append("tips", tips)
                .append("cityCode", cityCode)
                .append("info", info)
                .toString();
    }
}
